package pickbook.model;

//판매도서 관련 Value Object 정의
public class SaleBookVO {
	// member variable
	private int no; // 책 번호
	private String isbn; // 책 ISBN
	private String title; // 책제목
	private String writer; // 저자
	private String publisher; // 출판사
	private int price; // 희망가격
	private String status; // 책 상태
	private String version; // 책 개정정보
	private int bVisible; // 책 공개 여부
	private MemberVO mvo; // 고객정보
	private String image;

	// constructor - super
	public SaleBookVO() {
		super();
	}

	// constructor - overloading
	public SaleBookVO(int no, String isbn, String title,
			String writer, String publisher, int price, String status,
			String version, int bVisible, MemberVO mvo, String image) {
		super();
		this.no = no;
		this.isbn = isbn;
		this.title = title;
		this.writer = writer;
		this.publisher = publisher;
		this.price = price;
		this.status = status;
		this.version = version;
		this.bVisible = bVisible;
		this.mvo = mvo;
		this.image = image;
	}

	// setter/getter
	public int getNo() {
		return no;
	}

	public void setNo(int no) {
		this.no = no;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public int getbVisible() {
		return bVisible;
	}

	public void setbVisible(int bVisible) {
		this.bVisible = bVisible;
	}

	public MemberVO getMvo() {
		return mvo;
	}

	public void setMvo(MemberVO mvo) {
		this.mvo = mvo;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	// toString - overriding
	@Override
	public String toString() {
		return "SaleBookVO [no=" + no + ", isbn=" + isbn
				+ ", title=" + title + ", writer=" + writer + ", publisher="
				+ publisher + ", price=" + price + ", status=" + status
				+ ", version=" + version + ", bVisible=" + bVisible + ", mvo="
				+ mvo + ", image=" + image + "]";
	}

}
